package auth

import (
register2 "api/config/register"
"api/libs/doc/register"
"fmt"
)

const (
Model = "modelName"
Group = "groupName"
)

func CreatePageRegConfig() {
root := register.Create("模块占位")
root.SetModel(Model).SetGroup(Group).SetKey(fmt.Sprintf("%s.%s", Model, Group)).IsDir().AddSons(
//register.Create("目录占位").Copy(root).IsDir().AddSons(
//register.Create("列表页").Copy(root).AddKey("__TABLE__.list").SetRoute(fmt.Sprintf("/%s/%s", Model, Group)+"/__TABLE__/list").IsPage().AddSons(
//register.Create("_新增").Copy(root).AddKey("__TABLE__.Add").IsFunc(),
//register.Create("_编辑").Copy(root).AddKey("__TABLE__.edit").IsFunc(),
//register.Create("_删除").Copy(root).AddKey("__TABLE__.del").IsFunc(),
//),
//),
)
register2.AddPage(root)
}
